package org.iati.mobile;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
import org.simpleframework.xml.Attribute;

@Root(name="transaction", strict=false)
public class Transaction {
	@Attribute(name="ref", required=false)
	private String transactionRef;
	
	@Element(name="transaction-type", required=false)
	private String transactionType;
	
	@Element(name="value", required=false)
	private TransactionValue transactionValue;
	
	@Element(name="transaction-date", required=false)
	private String transactionDate;
	
	@Element(name="provider-org", required=false)
	private String providerOrg;
	
	@Element(name="receiver-org", required=false)
	private String receiverOrg;
	
	@Element(name="description", required=false)
	private String description;

	/**
	 * @return the transactionRef
	 */
	public String getTransactionRef() {
		return transactionRef;
	}

	/**
	 * @param transactionRef the transactionRef to set
	 */
	public void setTransactionRef(String transactionRef) {
		this.transactionRef = transactionRef;
	}

	/**
	 * @return the transactionType
	 */
	public String getTransactionType() {
		return transactionType;
	}

	/**
	 * @param transactionType the transactionType to set
	 */
	public void setTransactionType(String transactionType) {
		this.transactionType = transactionType;
	}

	/**
	 * @return the providerOrg
	 */
	public String getProviderOrg() {
		return providerOrg;
	}

	/**
	 * @param providerOrg the providerOrg to set
	 */
	public void setProviderOrg(String providerOrg) {
		this.providerOrg = providerOrg;
	}

	/**
	 * @return the receiverOrg
	 */
	public String getReceiverOrg() {
		return receiverOrg;
	}

	/**
	 * @param receiverOrg the receiverOrg to set
	 */
	public void setReceiverOrg(String receiverOrg) {
		this.receiverOrg = receiverOrg;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the transactionValue
	 */
	public TransactionValue getTransactionValue() {
		return transactionValue;
	}

	/**
	 * @param transactionValue the transactionValue to set
	 */
	public void setTransactionValue(TransactionValue transactionValue) {
		this.transactionValue = transactionValue;
	}

	/**
	 * @return the transactionDate
	 */
	public String getTransactionDate() {
		return transactionDate;
	}

	/**
	 * @param transactionDate the transactionDate to set
	 */
	public void setTransactionDate(String transactionDate) {
		this.transactionDate = transactionDate;
	}
}
